using System.Collections.Generic;
using System.ServiceProcess;
using System.Text;
using System;
using PSE.Hosting.ServiceHoster.Logging;
using PSE.Framework.Configuration;
using PSE.Framework.Process;
using System.Threading;

namespace PSE.Hosting.ServiceHoster
{
    /// <summary>
    /// The entry point of application.
    /// </summary>
    class Program : BaseProgram
    {
        static Program()
        {
            Initialize(PSE.Framework.Configuration.Components.SystemComponents.System, PSE.Framework.Configuration.Components.SystemComponents.HosterService);
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            //while (!System.Diagnostics.Debugger.IsAttached)
            //{
            //    Thread.Sleep(100);
            //}

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] { new WcfHoster() };
            ServiceBase.Run(ServicesToRun);
        }
    }
}
